package nc.ui.so.m30.billui.action;

import java.awt.event.ActionEvent;

import nc.ui.pub.bill.BillCardPanel;
import nc.ui.so.pub.keyvalue.CardKeyValue;
import nc.vo.so.pub.keyvalue.IKeyValue;

public class ItemNoAction extends AbstractPriceSoAction{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Override
	public void doAction(ActionEvent event) throws Exception {
		BillCardPanel billcard = getEditor().getBillCardPanel();
		int rowCount = billcard.getBillTable().getRowCount();
		IKeyValue keyValue = new CardKeyValue(billcard);
		if(rowCount > 0) {
			for(int i = 0; i < rowCount; i ++) {
				keyValue.setBodyValue(i, "vbdef3", ""+(i+1));
			}
		}
	}

	@Deprecated
	@Override
	protected boolean doExec() throws Exception {
		return false;
	}

}
